﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %>

<%@ Register assembly="eWorld.UI, Version=2.0.6.2393, Culture=neutral, PublicKeyToken=24d65337282035f2" namespace="eWorld.UI" tagprefix="ew" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<title>
Cервис отчётов "Инвеста Финанс"
</title>
<head runat="server">
    <title>Безымянная страница</title>
    <style type="text/css">
        #form1
        {
            height: 528px;
        }
        #Submit1
        {
            width: 174px;
        }
        #Ok
        {
            width: 139px;
            height: 22px;
        }
        .style1
        {
            width: 154px;
        }
        </style>
<script language="javascript" type="text/javascript">
// <!CDATA[

function Button1_onclick() {
myform.action= "http://10.42.0.216/Service1C/ServiceV77.asmx/GetReport?dateStart="
                + document.getElementById('dateStart1_textBox').value + "&dateEnd="
                + document.getElementById('dateEnd1_textBox').value + "&reportName="+document.getElementById('reportName').value;
document.getElementById('<%=dateStart.ClientID%>').value = document.getElementById('dateStart1_textBox').value;
document.getElementById('<%=dateEnd.ClientID%>').value = document.getElementById('dateEnd1_textBox').value;
}

function Submit1_onclick() {
myform.action= "http://10.42.0.216/Service1C/ServiceV77.asmx/GetReport?dateStart="
                + document.getElementById('dateStart1_textBox').value + "&dateEnd="
                + document.getElementById('dateEnd1_textBox').value + "&reportName="+document.getElementById('reportName').value;
document.getElementById('<%=dateStart.ClientID%>').value = document.getElementById('dateStart1_textBox').value;
document.getElementById('<%=dateEnd.ClientID%>').value = document.getElementById('dateEnd1_textBox').value;
}

// ]]>
</script>
</head>
<body title="Report 1C">
    <form id="myform" runat="server" method="post">
    <img alt="инвеста финанс" src="investa_finance_logo.gif" 
        style="width: 170px; height: 55px" /><br/>
    <table style="margin-right: 127px; width: 551px;">
   
            <tr>
                <td class="style1">
                    <asp:Label ID="Label1" runat="server" Text="Добро пожаловать:"></asp:Label>
                </td>
                <td>
                    <asp:Label ID="lUser" runat="server" Text=""></asp:Label>
                    &nbsp; 
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp; 
                </td>
                <td>
                    &nbsp; 
                </td>
            </tr>
            <tr>
                <td class="style1" >
                    Отчёт:
                </td>
                <td>
                    <asp:DropDownList ID="reportName" runat="server">
                           </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td class="style1">
                    Начало периода: 
                </td>
                <td>    
                     <ew:CalendarPopup ID="dateStart1" runat="server" 
                        DisabledEntryDisplayAction="OnButtonClick" DisableTextBoxEntry="False" 
                        ShowGoToToday="True" ControlDisplay="TextBoxImage" 
                            ImageUrl="cal.gif" ondatechanged="dateStart1_DateChanged" />
                </td>
            </tr>
            <tr>
            
                <td class="style1">
                    Конец периода:&nbsp; 
                </td>
                <td>
                    <ew:CalendarPopup ID="dateEnd1" runat="server" 
                        DisabledEntryDisplayAction="OnButtonClick" DisableTextBoxEntry="False" 
                        ShowGoToToday="True" ControlDisplay="TextBoxImage" ImageUrl="cal.gif" 
                        ondatechanged="dateEnd1_DateChanged" />
                </td>
            </tr>           
            <tr>
                <td class="style1">
                    &nbsp; 
                </td>
                <td>
                    &nbsp; 
                </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp; 
                </td>
                <td>
                    <asp:Button ID="Button2" runat="server" onclick="Button1_Click" 
                        Text="Сформировать отчёт" Width="156px" />
                </td>
            </tr>
            
            <asp:HiddenField ID="dateStart" runat="server" />
            <tr>
                <td class="style1">
                    </td>
            </tr>
            <tr>
                <td class="style1">
                    &nbsp;</td>
            </tr>
            <asp:HiddenField ID="dateEnd" runat="server"/>            
    </table>  
</form>
</body>
</html>
